#!/usr/bin/env sh

curl -XPOST 127.0.0.1:8001/services \
  --data name=grpc-consul \
  --data protocol=grpc \
  --data host=HelloService.service.consul \
  --data port=80
echo "\n"
curl -XPOST 127.0.0.1:8001/services/grpc-consul/routes \
  --data protocols=grpc \
  --data name=catch-all \
  --data paths=/
echo "\n"
curl  127.0.0.1:8001/services